<template>
  <div class="kp-index">
	  <vheader ref='header' @addpeople="gets"></vheader>
	  <keep-alive >
		  <router-view v-if="$route.meta.xcache"></router-view>
	  </keep-alive>
	  <router-view v-if="!$route.meta.xcache"></router-view>
  </div>
</template>

<script>
import { mapGetters, mapActions } from "vuex";
import vheader from './header.vue'
import { Login } from "../../api/api.js"
export default {
  data () {
    return {
      msg: 'HelloWorld123',
    }
  },
  mounted(){//载入后执行
  },
  created() {//创建后
      
  },
  watch: {//监听放置

  },
  methods: {//方法放置
	  gets(msg){
		  console.log(msg)
	  },
	 cityList(){
		 this.$router.push({
		 			 path:'/index/scenic/cityList'
		 })
	 },
	 scenicClick(){
		 this.$router.push({
			 path:'/index/scenic/scenicSearch'
		 })
	 },
	 hotelClick(){
	 		 this.$router.push({
	 			 path:'/index/hotel/hotelSearch'
	 		 })
	 }
  },
  components:{
	  vheader
  },
  computed: mapGetters([
    'ctitle',
  ]),
}
</script>

<style scoped>

</style>
